//
//  XMGMeViewController.m
//  百思不得解国内
//
//  Created by sunnyday on 16/5/16.
//  Copyright © 2016年 sunnyday. All rights reserved.
//

#import "XMGMeViewController.h"

@interface XMGMeViewController ()

@end

@implementation XMGMeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    // 标题
    self.navigationItem.title = @"我的";
    //设置 右边 两个按钮的点击
    
    // 自定义 控件  有两个 就用  uinavigationitems
    //  按钮 图片 高亮 frame
    
    
    UIBarButtonItem *settingItem = [UIBarButtonItem itemWithImage:@"mine-setting-icon" highImage:@"mine-setting-icon-click" target:self action:@selector(settingClick)];
    UIBarButtonItem *moonItem = [UIBarButtonItem itemWithImage:@"mine-moon-icon" highImage:@"mine-moon-icon-click" target:self action:@selector(moonlClick)];
    
    // 下面的  是需要barbuttonitem  上面的是 button 属性  所以得创建转换一下
    self.navigationItem.rightBarButtonItems = @[settingItem,moonItem];
    self.view.backgroundColor = XMGGlobalBg;
    
  }
- (void)settingClick
{
    
    XMGLogFunc;
}

- (void)moonlClick
{
    
    XMGLogFunc;
}

@end
